package com.qf.nacos.controller;

import com.qf.nacos.service.ProducerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProducerController {

    @Autowired
    private ProducerService producerService;

    @GetMapping("/producer/test")
    public String test(){
        return "Hello Nacos!!!";
    }


    @GetMapping("transfer")
    public String transfer(){
        producerService.transfer();
        return "SUCCESS";
    }

}
